/*
 * Copyright 2017 Baiyyy
 * @(#)DeviceServiceImpl.java
 */

package com.byyy.ccts.modules.cc.service.impl;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.byyy.ccts.core.common.service.impl.CommonServiceImpl;
import com.byyy.ccts.modules.cc.entity.ccts.TSDeviceWarningLog;
import com.byyy.ccts.modules.cc.mapper.DeviceWarningLogMapper;
import com.byyy.ccts.modules.cc.service.IDeviceWarningLogService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 设备操作指令
 *
 * @author DELL
 * @date 2018-5-14
 */
@Transactional
@Service("deviceWarningLogService")
public class DeviceWarningLogServiceImpl extends CommonServiceImpl<DeviceWarningLogMapper, TSDeviceWarningLog> implements IDeviceWarningLogService {

    @Override
    public Page<TSDeviceWarningLog> selectPage(Page<TSDeviceWarningLog> page, Wrapper<TSDeviceWarningLog> wrapper) {
        wrapper.eq("1", "1");
        page.setRecords(baseMapper.selectLogPage(page, wrapper));
        return page;
    }
}
